<template>
  <div>
    <h1>Home页面</h1>
  </div>
</template>

<script setup>
import {useUserStore} from "../store/stroe.js";

const user = useUserStore()
user.age = 20
console.log(user.getAge)
console.log(user.name)
user.setAge(18)

const res = async () => {
  const date = await user.setAge(18)
  if (date === 18) {
    console.log('成功')
  } else {
    console.log('失败')
  }
}

</script>
<style scoped>

</style>
